$(function () {

    var cardList = $(".exam-option-bx");
    $.each(cardList, function (index, em) {
        var status = $(em).data('status');
        var scoreState = $(em).data('state');
        if (status == 2) {
            if (scoreState == 1) {
                $(em).addClass('exam-option-correct');
            } else if (scoreState == 2) {
                $(em).addClass('b-halfRight');
            } else if (scoreState == 3) {
                $(em).addClass('exam-option-error');
            }
        }
    });


});